package net.piggy.domain;

import java.util.Arrays;

public class RequestFuture {

    //每次请求id，id可以设置原子性增长
    private Long id;

    // Interface + function
    private String path;
    //请求参数
    private Object[] param;
    //响应结果
    private Object result;

    public Object[] getParam() {
        return param;
    }

    public void setParam(Object[] param) {
        this.param = param;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }


    public RequestFuture() {}

    @Override
    public String toString() {
        return "RequestFuture{" +
                "id=" + id +
                ", path='" + path + '\'' +
                ", param=" + Arrays.toString(param) +
                ", result=" + result +
                '}';
    }
}
